package top.meeting.room.common.constant;

/**
 * 我有故事，你有酒么？
 * JKhaled created by yunqisong@foxmail.com 2017/7/22
 * FOR : 异常结果枚举
 */
public enum ResultEnum {

  ERROR_403(403,"权限不足"),
  ERROR_404(404,"找不到对应请求"),
  ERROR_405(405,"请求的方法不对"),
  ERROR_500(500,"服务器错误"),
  DB_ERROR(2, "数据库操作出错"),
  DATA_ERROR(1, "数据验证错误"),
  SUCCESS(0, "成功");

  private Integer code;
  private String msg;

  ResultEnum(Integer code, String msg) {
    this.code = code;
    this.msg = msg;
  }

  public Integer getCode() {
    return code;
  }

  public String getMsg() {
    return msg;
  }
}
